<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Lang extends Controller_Common {

	public $template='layout/index';

	public function action_ru() {
		Cookie::set('lang', 'ru');
		$this->redirect($_SERVER['HTTP_REFERER']);
	}

	public function action_en() {
		Cookie::set('lang', 'en');
		$this->redirect($_SERVER['HTTP_REFERER']);
	}

	public function action_kz() {
		Cookie::set('lang', 'kz');
		$this->redirect($_SERVER['HTTP_REFERER']);
	}
}